package com.softlab.retailwholesalesystem.entity.VO;

import com.softlab.retailwholesalesystem.entity.DetailPurchaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * VO-采购单-货物
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PurchaseGoodsVOEntity implements Serializable {
    private Long purchaseMapId;
    private Long goodsId;
    private String goodsName;
    private Long repositoryId;
    private String repositoryName;
    private Long goodsNumber;


    public PurchaseGoodsVOEntity(DetailPurchaseEntity entity) {
        this.purchaseMapId = entity.getPurchaseMapId();
        this.goodsId = entity.getGoodsId();
        this.repositoryId = entity.getRepositoryId();
        this.goodsNumber = entity.getGoodsNumber();
    }
}
